from selenium import webdriver
from selenium.webdriver.common.by import By
from options import options
from time import sleep

url = r'http://172.16.36.121/upload/'
deiver = webdriver.Chrome(options=options)
deiver.get(url)
deiver.maximize_window()
sleep(3)
#   注册
deiver.find_element(By.XPATH,'//*[@id="lsform"]/div/div/table/tbody/tr[2]/td[4]/a').click()
deiver.find_element(By.ID,'qR1Zf7').send_keys('app')
deiver.find_element(By.ID,'Dguu11').send_keys('123456')
deiver.find_element(By.ID,'Fzes72').send_keys('123456')
deiver.find_element(By.ID,'i43045').send_keys('123@163.com')
sleep(1)
deiver.find_element(By.ID,'registerformsubmit').click()
sleep(2)
#   退出
deiver.find_element(By.XPATH,'//*[@id="um"]/p[1]/a[7]').click()
sleep(3)
